
import {simpleServer} from '@/tools/servers'

/**
 * 物流补贴
 */
export class LogisticsSubsidyService {
    // 分页查询列表
    static findLogisticsSubsidys (pageDTO) {
        var httpMethod = 'POST';
        var body = simpleServer.getArgs(this.findLogisticsSubsidys,arguments,'POST');
        return simpleServer.connection(httpMethod, '/simple/logistics/LogisticsSubsidy/findLogisticsSubsidys', body);
    }


    //根据物流补贴Id查询物流补贴
    static findLogisticsSubsidy (logisticsSubsidyId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findLogisticsSubsidy ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/logistics/LogisticsSubsidy/findLogisticsSubsidy',body);
    }

    //为了编辑,根据物流补贴Id查询物流补贴
    static findLogisticsSubsidyForEdit(logisticsSubsidyId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findLogisticsSubsidyForEdit ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/logistics/LogisticsSubsidy/findLogisticsSubsidyForEdit',body);
    }

    //为了查看,根据物流补贴Id查询物流补贴，所有外键字段的名称都已加载
    static findLogisticsSubsidyForView(logisticsSubsidyId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findLogisticsSubsidyForView ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/logistics/LogisticsSubsidy/findLogisticsSubsidyForView',body);
    }

    //创建新的物流补贴
    static createLogisticsSubsidy() {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.createLogisticsSubsidy,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/logistics/LogisticsSubsidy/createLogisticsSubsidy',body);
    }

    //保存物流补贴
    static saveLogisticsSubsidy(logisticsSubsidy) {
        var httpMethod = 'POST';
        var body = simpleServer.getArgs(this.saveLogisticsSubsidy,arguments,'POST');
        return simpleServer.connection(httpMethod, '/simple/logistics/LogisticsSubsidy/saveLogisticsSubsidy', body);
    }

    //编辑物流补贴
    static updateLogisticsSubsidy (logisticsSubsidy) {
        var httpMethod = 'POST';
        var body = simpleServer.getArgs(this.updateLogisticsSubsidy,arguments,'POST');
        return simpleServer.connection(httpMethod, '/simple/logistics/LogisticsSubsidy/updateLogisticsSubsidy', body);
    }

    //根据物流补贴Id删除物流补贴
    static deleteLogisticsSubsidy (logisticsSubsidyId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.deleteLogisticsSubsidy,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/logistics/LogisticsSubsidy/deleteLogisticsSubsidy',body);
    }

    //为了查看,根据物流补贴Id查询物流补贴，只加载ID 和 名称
    static findLogisticsSubsidysWithIdNameById(logisticsSubsidyId) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findLogisticsSubsidysWithIdNameById ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/logistics/LogisticsSubsidy/findLogisticsSubsidysWithIdNameById',body);
    }

    //为了查看,根据物流补贴 名称 查询物流补贴，只加载ID 和 名称
    static findLogisticsSubsidysWithIdNameByName(logisticsSubsidyName) {
        var httpMethod = 'GET';
        var body = simpleServer.getArgs(this.findLogisticsSubsidysWithIdNameByName ,arguments,'GET');
        return simpleServer.connection(httpMethod, '/simple/logistics/LogisticsSubsidy/findLogisticsSubsidysWithIdNameByName',body);
    }


}
